-
Notifications
You must be signed in to change notification settings - Fork 31
Percy test #415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Percy test #415
Conversation
Add automated Percy visual regression testing to GitHub Actions workflow with intelligent partial snapshot detection for faster builds. Features: - Automatic component change detection from git diff - Partial snapshots for changed components only - Full snapshots for global changes (tokens, variables, mixins) - PR blocking until Percy approval - Auto-approval on main branch for baseline updates - Path filtering to skip non-Skin changes Changes: - Add Percy GitHub Actions workflow (.github/workflows/percy.yml) - Add change detection script (packages/skin/scripts/detect-changed-components.js) - Update CONTRIBUTING.md with automated workflow documentation - Add PERCY-FAQ.md for comprehensive user guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
The Percy workflow was failing with "fatal: ambiguous argument 'main...HEAD'" because the checkout action only fetches the PR branch. Added explicit fetch of the main branch to ensure git diff comparison works correctly. Co-Authored-By: Claude <noreply@anthropic.com>
92f524b to
5a281e8
Compare
Added automated Percy build status reporting that: - Waits for Percy builds to complete processing - Posts informative PR comments with build status and link - Warns if visual changes are detected but doesn't block PRs - Only fails workflow if Percy build encounters errors Changes: - Added @octokit/rest dependency for GitHub API integration - Created percy-wait-and-comment.js script to monitor builds - Updated Percy workflow to post build status comments - Uses PERCY_READ_TOKEN to query build information The script dynamically fetches the Percy project slug and finds builds by commit SHA, eliminating need for hardcoded configuration. Co-Authored-By: Claude <noreply@anthropic.com>
a09a615 to
c269394
Compare
c269394 to
6998af4
Compare
- Create sass-dependency-analyzer.js to parse @use/@forward directives - Build forward and reverse dependency graphs - Find transitive dependencies when SCSS files change - Integrate dependency analysis into detect-changed-components.js - Fail-safe to "all" if dependency analysis encounters errors Co-Authored-By: Claude <noreply@anthropic.com>
6998af4 to
ca85a48
Compare
The Percy API /projects endpoint returns the project data directly at response.data, not response.data.data. This was causing the "Invalid response from Percy API" error in the GitHub Action. Co-Authored-By: Claude <noreply@anthropic.com>
ca85a48 to
24d2a91
Compare
🎨 Percy Visual Regression ReportBuild Status: Summary
Generated by Percy CI • Commit 24d2a91 |
🎨 Percy Visual Regression ReportBuild Status: Summary
Generated by Percy CI • Commit 7c6957c |
This is just for testing the GH action. The original PR is #414